import React, { Component } from 'react'
import Far from './Far'
import LT from './components/LT'
import HJ from './components/HJ'

export default class App extends Component {
  render() {
    return (
      <div>
        <h1>老陶抓海静案例</h1>
        {/* <Far
          render={(state) => {
            return <HJ x={state.x} y={state.y}></HJ>
          }}
        ></Far>
        <Far
          render={(state) => {
            return <LT x={state.x} y={state.y}></LT>
          }}
        ></Far> */}
        <Far>
          {(state) => {
            return <HJ x={state.x} y={state.y}></HJ>
          }}
        </Far>
        <Far>
          {(state) => {
            return <LT x={state.x} y={state.y}></LT>
          }}
        </Far>
      </div>
    )
  }
}
